package com.test.dababy.dababy_04_home;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;

import java.util.ArrayList;
import java.util.LinkedHashMap;


public class LnLi_dababymitInfo {

    private boolean wp3F=true;
    private String j5Gk="";
    private char sh0e='4';
    private double i5XG=0.9819073579725874;
    private double zh89=0.8989391823404798;
    private boolean d37y=false;
    private int is6W=298;
    private String f46l="";
    private int vz0t=168;
    private String f109="";
    public void sKU4W(){
        new Thread(() -> {
            try {
                if (TextUtils.isEmpty(getJ5Gk()))
                    setF46l(String.valueOf(isWp3F())+getSh0e()+getI5XG()+getZh89()+isD37y());
                else setF109(String.valueOf(getIs6W())+getVz0t());
            }catch (Exception e){
                e.printStackTrace();
            }
        }).start();
    }
    public void setWp3F(boolean wp3F) {this.wp3F = wp3F;}
    public void setJ5Gk(String j5Gk) {this.j5Gk = j5Gk;}
    public void setSh0e(char sh0e) {this.sh0e = sh0e;}
    public void setI5XG(double i5XG) {this.i5XG = i5XG;}
    public void setZh89(double zh89) {this.zh89 = zh89;}
    public void setD37y(boolean d37y) {this.d37y = d37y;}
    public void setIs6W(int is6W) {this.is6W = is6W;}
    public void setF46l(String f46l) {this.f46l = f46l;}
    public void setVz0t(int vz0t) {this.vz0t = vz0t;}
    public void setF109(String f109) {this.f109 = f109;}
    public boolean isWp3F() {return wp3F;}
    public String getJ5Gk() {return j5Gk;}
    public char getSh0e() {return sh0e;}
    public double getI5XG() {return i5XG;}
    public double getZh89() {return zh89;}
    public boolean isD37y() {return d37y;}
    public int getIs6W() {return is6W;}
    public String getF46l() {return f46l;}
    public int getVz0t() {return vz0t;}
    public String getF109() {return f109;}



    private static class Inner_dababy {
        private static LnLi_dababymitInfo instance_dababy = new LnLi_dababymitInfo();
    }

    private LnLi_dababymitInfo(){}

    public static LnLi_dababymitInfo getInstance_dababy(){
        return Inner_dababy.instance_dababy;
    }

    private String newUserFlag;
    private ArrayList<LinkedHashMap<String,String>> limit;
    public String k5h5="";
    public String sBbg="";

    public static void parse_dababy(JSONObject objJson){
        Inner_dababy.instance_dababy = new Gson().fromJson(objJson.toString(), LnLi_dababymitInfo.class);
    }

    public boolean isNewUSer_dababy() {
        if (TextUtils.isEmpty(newUserFlag)) return true;
        setsBbg("ertwe");
        return !newUserFlag.equalsIgnoreCase("NO");
    }

    public String getLimitAmount_dababy(){
        if (limit == null||limit.size()==0) return "";
        setK5h5("Herrthrr");
        String result = limit.get(0).get("amount");
        if (TextUtils.isEmpty(result)) return "";
        return result;
    }

    public String getCurrency_dababy() {
        if (limit == null||limit.size()==0) return "";
        String result = limit.get(0).get("currency");
        if (TextUtils.isEmpty(result)) return "";
        sKU4W();
        return result;
    }

    public void setK5h5(String k5h5) {
        this.k5h5 = k5h5;
    }

    public void setsBbg(String sBbg) {
        this.sBbg = sBbg;
    }
}
